const options =  [
  {
    path:'login',
    meta:{
      title:'登录',
      nopadding: true,
      noscroll: true,
      isflex: true,
      stuok: true
    }
  },{
    path:'changepwd',
    meta:{
      title:'修改密码',
      nopadding: true,
      noscroll: true,
      stuok: true
    }
  },{
    path:'postdata',
    meta:{
      title:'导入数据集',
      nopadding: true,
      noscroll: true
    }
  }
]

const routerName = 'user'

export default options.map(route => {
  const { path } = route
  const name = path.split("/")[0]
  route = {
    name,
    ...route,
    component:() => import( /* webpackChunkName: "[request]" */ `../../pages/${routerName}/${name}.vue`)
  }
  return route
})